<?php
namespace app\admin\model;

use think\Model;

class TechnCate extends Base
{
    protected $name = 'techn_cate';

    public function getCateIdAttr($val){
        $name = (new Cate())->getVal(['id' => $val], 'name')['data'];
        return '<span style="color: #1E9FFF">' . $name . '</span>';
    }
}